
class CustomException(Exception):
    """
    自定义异常
    """

    def __init__(self, code=500, msg='系统异常'):
        self.code = code
        self.msg = msg


class RequestParamException(CustomException):
    """
    请求参数错误
    """

    def __init__(self, code=400, msg='请求参数错误'):
        self.code = code
        self.msg = msg
